import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import router from "./router";
import App from "./App.vue";

// 导入全局样式
import "./styles/common.scss";
import "vant/lib/index.css";
// 导入自定义样式覆盖
import "./styles/vant-override.scss";

// 创建应用
const app = createApp(App);

// 配置 Pinia
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

// 注册全局组件和插件
app.use(pinia);
app.use(router);

// 挂载应用
app.mount("#app");
